﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.IO;
using System.Linq;
using System.Windows.Forms;

// See the ReadMe.html for additional information
namespace WinFormsDataBinding {
    static class Program 
    {
        // The following sample assumes that you installed the DATA sample 
        // project and that Northwind.MDF is in that Data directory.
        private readonly static string dbPath = Path.GetFullPath(Path.Combine(Application.StartupPath, @"..\..\..\Data\NORTHWND.MDF"));
        private readonly static string sqlServerInstance = @".\SQLEXPRESS";
        public readonly static string connString = "AttachDBFileName='" + dbPath + "';Server='" + sqlServerInstance + "';user instance=true";

        //Additionally the Northwind.cs file has been modified from that generated by SQLMetal
        //to include override ToString method on the Employee entity, this allows the DataGridView's
        //ReportsToEmployee column to display a reasonable value.
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.Run(new EmployeeForm());
        }
    }
}